from django.contrib import admin

# Register your models here.
from leave.models import LeaveRecord


class LeaveRecordAdmin(admin.ModelAdmin):
    list_display = ['person', "account", "leave_time", "reason"]
    date_hierarchy = "leave_time"
    list_filter = ["person__name", ]


admin.site.register(LeaveRecord, LeaveRecordAdmin)
